import request from '@/utils/request'

// 角色授权
const URL_PREFIX = '/role/allow'

/**
 * 获取列表
 */
export function getClientIdList(params) {
  return request({
    url: URL_PREFIX + '/getClientIdList',
    method: 'GET',
    params
  })
}

/**
 * 保存
 */
export function change(roleId, data) {
  return request({
    url: URL_PREFIX + `/${roleId}`,
    method: 'POST',
    data
  })
}
